<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="js/swfobject.js"></script>
<script src="js/jquery-1.2.3.pack.js"></script>

<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>Database Performance Dashboard</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>
<?php
	date_default_timezone_set("Asia/Singapore");
	$currTime=time();
?> 
  <body>
    <div id="container">
      <!-- Start of Page Header -->
      <div id="page_header">
          <div id="company_name">
          <h1><span>Oracle Database Performance Dashboard</span></h1>
          </div>
      </div>
      <div id="page_menu">
          <ul>
          <li class="home"><a href="./index.php" title="Home"><span>Home</span></a></li>
          <li class="monitor"><a href="./firstlevel.php" title="First Level of Parameters Monitor"><span>Monitor</span></a></li>
          <li class="debug"><a href="./debug.php" title="Debug Interface"><span>Debug</span></a></li>
          <li class="settings"><a href="./settings.php" title="Settings"><span>Settings</span></a></li>
          <li class="aboutus"><a href="./aboutUs.php" title="About Us"><span>About Us</span></a></li>
          </ul>
      </div>
	  <div id="logout"><a href="./logout.php">logout</a></div>
      <div id="main_content">
          <div class="content_header">
          <h2><span>Database Performance Dashboard</span></h2>
          </div>
          <div class="content_box_right">
          <div class="content_box_left">
          <div class="content_box">
          <div id="main_content_border">
              <div class="topmasters">
                  <div class="thumbnail">
                  <img src="images/_thumbnail02.gif" width="133" height="93" alt="Thumbnail Caption" />
              </div>
              <div class="topmasters_info">
			  <h2>Rollback Segments Parameters<h2>
			  <br />
			  <br />
			  <br />
			 <th width="60%">Waits / Accesses to Rollback Segments</th>
			 <form id="second_roll" action="secondlevel_roll.php" method="post"><label><font color="white">x unit time block: </font></label><input id="roll" name="roll" value="<?php if(!isset($_POST['roll'])) echo '1'; else echo $_POST['roll'];?>"/> <font color="white">hours</font><input type="submit" value="Refresh" /></form>
                <div id="roll2_bar"></div>
		
                  </div>
                  <div class="clearthis">&nbsp;</div>
              </div>
  
              <!-- End of Top Masters Listing 1 -->
  
          </div>
          </div>
          </div>
          </div>
  
      </div>
  
      <!-- End of Main Content -->
  
  
      <div class="clearthis">&nbsp;</div>
  
  
      <!-- Start of Page Footer -->
  
      <div id="page_footer">
      Design by <a href="aboutUs.php">CS5226 Group</a>
      </div>
  
  </div>
  
  </body>
  
  <script type="text/javascript">
swfobject.embedSWF("open-flash-chart.swf", "roll2_bar", "550", "400", "9.0.0"
, "expressInstall.swf",
  {"data-file":"roll2_bar.php?roll=" + $("#roll").val()});
  
  function submitToReport(index) {
  var submitForm = document.createElement("FORM");
   document.body.appendChild(submitForm);
   submitForm.method = "GET";
   var newElement = document.createElement("INPUT");
   newElement.name = "hour";
   newElement.type = "hidden";
   submitForm.appendChild(newElement);
   newElement.value = index;
   var newElement2 = document.createElement("INPUT");
   newElement2.name = "x";
   newElement2.type = "hidden";
   submitForm.appendChild(newElement2);
   newElement2.value = $("#roll").val();
   submitForm.target= "_blank";
   submitForm.action= "thirdlevel_roll.php";
   submitForm.submit();
}
 
</script>
  </html>